﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using SGRapidForm.Common;

namespace SGRapidForm.Permission.Entity
{
    [DataContract]
    public class Dept : EntityBase
    {
        public Dept() { }

        #region Model

        private string _keyid = string.Empty;
        private string _parentkeyid = string.Empty;
        private string _deptcode = string.Empty;
        private string _deptname = string.Empty;
        private string _helpcode = string.Empty;
        private string _depttype = string.Empty;
        private string _contact = string.Empty;
        private string _phone = string.Empty;
        private string _mobilephone = string.Empty;
        private string _complainphone = string.Empty;
        private string _fax = string.Empty;
        private string _deptfullname = string.Empty;
        private string _deptfullnameen = string.Empty;
        private string _address = string.Empty;
        private string _addressen = string.Empty;
        private string _postcode = string.Empty;
        private string _businessnumber = string.Empty;
        private string _taxnumber = string.Empty;
        private string _remark = string.Empty;
        private string _createname = string.Empty;
        private DateTime? _createdate = new DateTime(1900, 1, 1, 0, 0, 0);
        private string _modifyname = string.Empty;
        private DateTime? _modifydate = new DateTime(1900, 1, 1, 0, 0, 0);

        [DataMember]
        public string Keyid
        {
            set { _keyid = value; }
            get { return _keyid; }
        }

        [DataMember]
        public string ParentKeyid
        {
            set { _parentkeyid = value; }
            get { return _parentkeyid; }
        }

        [DataMember]
        public string DeptCode
        {
            set { _deptcode = value; }
            get { return _deptcode; }
        }

        [DataMember]
        public string DeptName
        {
            set { _deptname = value; }
            get { return _deptname; }
        }

        [DataMember]
        public string HelpCode
        {
            set { _helpcode = value; }
            get { return _helpcode; }
        }

        [DataMember]
        public string DeptType
        {
            set { _depttype = value; }
            get { return _depttype; }
        }

        [DataMember]
        public string Contact
        {
            set { _contact = value; }
            get { return _contact; }
        }

        [DataMember]
        public string Phone
        {
            set { _phone = value; }
            get { return _phone; }
        }

        [DataMember]
        public string MobilePhone
        {
            set { _mobilephone = value; }
            get { return _mobilephone; }
        }

        [DataMember]
        public string ComplainPhone
        {
            set { _complainphone = value; }
            get { return _complainphone; }
        }

        [DataMember]
        public string Fax
        {
            set { _fax = value; }
            get { return _fax; }
        }

        [DataMember]
        public string DeptFullName
        {
            set { _deptfullname = value; }
            get { return _deptfullname; }
        }

        [DataMember]
        public string DeptFullNameEn
        {
            set { _deptfullnameen = value; }
            get { return _deptfullnameen; }
        }

        [DataMember]
        public string Address
        {
            set { _address = value; }
            get { return _address; }
        }

        [DataMember]
        public string AddressEn
        {
            set { _addressen = value; }
            get { return _addressen; }
        }

        [DataMember]
        public string Postcode
        {
            set { _postcode = value; }
            get { return _postcode; }
        }

        [DataMember]
        public string BusinessNumber
        {
            set { _businessnumber = value; }
            get { return _businessnumber; }
        }

        [DataMember]
        public string TaxNumber
        {
            set { _taxnumber = value; }
            get { return _taxnumber; }
        }

        [DataMember]
        public string Remark
        {
            set { _remark = value; }
            get { return _remark; }
        }

        [DataMember]
        public string CreateName
        {
            set { _createname = value; }
            get { return _createname; }
        }

        [DataMember]
        public DateTime? CreateDate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }

        [DataMember]
        public string ModifyName
        {
            set { _modifyname = value; }
            get { return _modifyname; }
        }

        [DataMember]
        public DateTime? ModifyDate
        {
            set { _modifydate = value; }
            get { return _modifydate; }
        }
        #endregion Model
    }
}
